package org.brownflat.watergate.domain;

/**
 * <p>&copy Rupert Jones 2012</p>
 *
 * @author rup
 */
public class UserRepositoryBuilder extends AbstractBuilder<UserRepository> {

    public UserRepositoryBuilder() {
        super(new UserRepository());
    }

    public UserRepositoryBuilder withUser(User user) {
        getEntity().setUser(user);
        return this;
    }

    public UserRepositoryBuilder withRepository(Repository repository) {
        getEntity().setRepository(repository);
        return this;
    }

    public UserRepositoryBuilder withAlias(String alias) {
        getEntity().setAlias(alias);
        return this;
    }
}
